package com.tang.chat.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * @author tmh
 * @date 2024/5/5 15:54
 * @description 配置类里面这个ServerEndpointExporter对象的作用就是扫描添加有
 *              “@ServerEndpoint注解的类
 */
@Configuration
public class WebsocketConfig {

    @Bean
    public ServerEndpointExporter serverEndpointExporter(){
        return new ServerEndpointExporter();
    }
}
